/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package devbureau.fstore.common;

import java.util.Date;

/**
 *
 * @author buyakov
 */
public class OrderLineDataImpl extends OrderLineImpl implements OrderLineData {

    private Integer id = null;
    private Date created  = null;
    private Date modified  = null;
    private ItemData itemData  = null;
    private Double priceSum = null;
    private Double margin = null;
    private Double marginSum = null;


    public OrderLineDataImpl(Integer id,Integer itemId ,ItemData itemData,Integer quantity,Double price,Double priceSum,Double margin,Double marginSum,Date created, Date modified) {
        super (itemId ,quantity,price);
        this.id = id;
        this.created = created;
        this.modified = modified;
        this.itemData = itemData;
        this.priceSum = priceSum;
        this.margin = margin;
        this.marginSum = marginSum;
    }
    
    public Integer getId() {
       return id;
    }

    public Date getCreated() {
       return modified;
    }

    public Date getModified() {
       return created;
    }

    public ItemData getItemData() {
       return itemData;
    }
    public Double getPriceSum() {
        return priceSum;
    }
    public Double getMargin() {
        return margin;
    }
    public Double getMarginSum() {
        return marginSum;
    }

}
